﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RejectRDP
{
    public partial class DisplayMessage : Form
    {
        public DisplayMessage()
        {
            InitializeComponent();
        }

        public DisplayMessage(string[] _strUserDetails)
        {
            InitializeComponent();
            label1.Text = "";
            ChangeText(_strUserDetails);
        }

        private void ChangeText(string[] _strUserDetails)
        {
            foreach (string _strTemp in _strUserDetails)
            {
                label1.Text += _strTemp;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
